export const homeRoute = [
  {
    path: "template-layout",
    component: () => import("@/views/templateLayout/index.vue"),
    name: "TemplateLayout",
    meta: {
      title: "模板布局",
      hidden: false,
    },
  },
  // {
  //   path: "home-gen",
  //   component: () => import("@/views/home-gen/index.vue"),
  //   name: "HomeGen",
  //   meta: {
  //     title: "首页生成",
  //     hidden: false,
  //   },
  // },
  // {
  //   path: "homebk",
  //   component: () => import("@/views/homebk/index.vue"),
  //   name: "HomeBk",
  //   meta: {
  //     title: "首页备份",
  //     hidden: false,
  //   },
  // },
  {
    path: "service-overview",
    component: () => import("@/views/service-overview/serviceOverview.vue"),
    name: "ServiceOverview",
    meta: {
      title: "服务总览",
      hidden: false,
    },
  },
  {
    path: "enterprise-risk-monitoring",
    component: () => import("@/views/enterprise-riskMonitoring/enterpriseRiskMonitoring.vue"),
    name: "EnterpriseRiskMonitoring",
    meta: {
      title: "监控总览",
      hidden: false,
    },
  },
  {
    path: "task-overview",
    component: () => import("@/views/task-overview/taskOverview.vue"),
    name: "TaskOverview",
    meta: {
      title: "任务总览",
      hidden: false,
    },
  },
  // {
  //   path: "header-sider-template",
  //   component: () => import("@/views/templates/HeaderSiderTemplate/index.vue"),
  //   name: "HeaderSiderTemplate",
  //   meta: {
  //     title: "HeaderSider模板",
  //     hidden: false,
  //   },
  // },
];

export const constantRoute = [
  {
    path: "/login",
    component: () => import("@/views/login/index"),
    hidden: true,
  },
  {
    path: "/404",
    component: () => import("@/views/404"),
    hidden: true,
  },
  {
    path: "/",
    component: () => import("@/views/home/index.vue"),
    redirect: "/home-gen",
    children: homeRoute,
  },
  { path: "*", redirect: "/404", hidden: true },
];


// export const homeRoute = [
//   {
//     path: '/layout/index2',
//     component: () => import('@/views/login'),
//     name: 'index2',
//     meta: {
//       title: 'index1',
//       hidden: false,
//       sort: '1',
//     },
//   },
// ];